import { AddLoginUser } from '../constant'

const base = {}

function loginUserReducer(preState = base, action) {
	const { type, data } = action

	switch (type) {
		case AddLoginUser:
			return { ...data }
		default:
			return preState
	}
}

export default loginUserReducer
